package com.zhou.sys.web.controller;

import com.zhou.sys.common.sso.annotation.Action;
import com.zhou.sys.common.sso.annotation.Login;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by 0 on 2017/9/22.
 */
@Controller
@Api(value = "后台管理", description = "后台管理")
public class TestController {
    private static Logger _log = LoggerFactory.getLogger(TestController.class);

    @ApiOperation(value = "后台首页")
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    @Login(action = Action.Skip)
    public String index(ModelMap modelMap) {
        modelMap.put("test", "test01");
        return "manager/index";
    }
}
